package com.jiujichaoshi.oauth.server.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

import java.util.Map;

/**
 * Description: <p>包装JWT以及登录后跳转地址</p>
 *
 * @author YangLong [410357434@163.com]
 * @version V1.0
 * @date 2021/7/6
 */
@ApiModel("登录Token返回实体")
@Data
public class TokenResult {
    @ApiModelProperty("返回重定向地址，前端传递过来登录后再传回去")
    private String redirectUri;
    @ApiModelProperty("token信息")
    private OAuth2AccessToken accessToken;
    @ApiModelProperty("附加信息")
    private Map<String, String> extensions;
}
